package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;

import javax.persistence.Column;

@TableName("productLog")
@Data
public class ProductLog {
    private String productName;
    @Column(name = "product_id")
    private Integer productId;
    @MppMultiId//设置主键
    private String productCode;

    private double productWeight;
    private String productSource;
    private String outCharge;
    private String destination;
    private String inCharge;
    private String productBirth;
    private String expiration;
    private String transporter;
    private String note;

    @MppMultiId
    private Integer tenantId;

    public ProductLog() {
        this.productName = productName;
        this.productId = productId;
        this.productCode = productCode;
        this.productWeight = productWeight;
        this.productSource = productSource;
        this.outCharge = outCharge;
        this.destination = destination;
        this.inCharge = inCharge;
        this.productBirth = productBirth;
        this.expiration = expiration;
        this.transporter = transporter;
        this.note = note;
        this.tenantId = tenantId;
    }

    public Integer getTenantId() {
        return tenantId;
    }

    public void setTenantId(Integer tenantId) {
        this.tenantId = tenantId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public double getProductWeight() {
        return productWeight;
    }

    public void setProductWeight(double productWeight) {
        this.productWeight = productWeight;
    }

    public String getProductSource() {
        return productSource;
    }

    public void setProductSource(String productSource) {
        this.productSource = productSource;
    }

    public String getOutCharge() {
        return outCharge;
    }

    public void setOutCharge(String outCharge) {
        this.outCharge = outCharge;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getInCharge() {
        return inCharge;
    }

    public void setInCharge(String inCharge) {
        this.inCharge = inCharge;
    }

    public String getProductBirth() {
        return productBirth;
    }

    public void setProductBirth(String productBirth) {
        this.productBirth = productBirth;
    }

    public String getTransporter() {
        return transporter;
    }

    public void setTransporter(String transporter) {
        this.transporter = transporter;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
    public String getExpiration() {
        return expiration;
    }

    public void setExpiration(String expiration) {
        this.expiration = expiration;
    }


}
